package com.ly.heart.domain;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 办公用品操作记录对象 erp_office_supplies_record
 *
 * @author cxl
 * @date 2024-06-09
 */
@TableName ("erp_office_supplies_record")
@ApiModel (value = "办公用品操作记录", description = "办公用品操作记录")
@Data
@Accessors(chain = true)
public class OfficeSuppliesRecordEntity{

    /** 主键id */
    @TableId (type = IdType.INPUT)
    private String id;

    /** 办公用品表id */
    @ApiModelProperty ("办公用品表id")
    @TableField ("office_supplies_id")
    @Excel (name = "办公用品表id")
    private String officeSuppliesId;

    /** 类型(0采购记录 1入库记录 2出库记录 3退库记录) */
    @ApiModelProperty ("类型(0采购记录 1入库记录 2出库记录 3退库记录)")
    @TableField ("type")
    @Excel (name = "类型(0采购记录 1入库记录 2出库记录 3退库记录)")
    private Integer type;

    /** 关联id(供应商id/?) */
    @ApiModelProperty ("关联id(供应商id/?)")
    @TableField ("relation_id")
    @Excel (name = "关联id(供应商id/?)")
    private String relationId;

    /** 日期 */
    @ApiModelProperty ("日期")
    @TableField ("date")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 合计金额 */
    @ApiModelProperty ("合计金额")
    @TableField ("total_money")
    @Excel (name = "合计金额")
    private String totalMoney;

    /** 金额大写 */
    @ApiModelProperty ("金额大写")
    @TableField ("money_uppercase")
    @Excel (name = "金额大写")
    private String moneyUppercase;

    /** 相关人员 */
    @ApiModelProperty ("相关人员")
    @TableField ("relation_user")
    @Excel (name = "相关人员")
    private String relationUser;

    /** 创建人 */
    @ApiModelProperty ("创建人")
    @TableField ("user_id")
    @Excel (name = "创建人")
    private String userId;

    /** 创建时间 */
    @ApiModelProperty ("创建时间")
    @TableField ("create_time")
    @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新时间 */
    @ApiModelProperty ("更新时间")
    @TableField ("change_time")
    @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss")
    private Date changeTime;


    @ApiModelProperty ("逻辑删除")
    @TableField ("is_used")
    @Excel (name = "逻辑删除")
    private Integer isUsed;


    @ApiModelProperty("办公用品操作明细")
    @TableField(exist = false)
    private List<OfficeSuppliesDetailEntity> details;

}
